package basics.cankao;

/**
 * @author Ldanniel
 * @description :
 * @date 2022/11/01 22:51
 * @since open jdk 1.8
 */
public class Student {
    private String name;
    private int age;
    private boolean sex;

    public Student(String name, int age, boolean sex) {
        this.name = name;
        this.age = age;
        this.sex =sex;
    }

    @Override
    public String toString() {
        return "name = " + name + ", age = " + age + ", sex = " + (sex ? "男" : "女");
    }
}
